// Tab 页面
import 'package:flutter/material.dart';

class TestPage extends StatefulWidget {
  const TestPage({
    super.key,
    required this.text,
    required this.myFontSize
  });

  final String text;
  final double myFontSize;

  @override
  _PageState createState() => _PageState();
}

class _PageState extends State<TestPage> {
  @override
  Widget build(BuildContext context) {
    return Container(
      // margin: const EdgeInsets.all(2), // 外边距
      padding: EdgeInsets.symmetric(vertical: 0, horizontal: 20),
      child: Center(
        child: Text(
          widget.text,
          style: TextStyle(fontSize: widget.myFontSize),)
      )
    );
  }
}